package com.jxl.application.controller.convert;

import com.jxl.domain.entity.AuthUserRoleBO;
import com.jxl.dto.AuthUserRoleDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserRoleDtoConvert {

    AuthUserRoleDtoConvert INSTANCE = Mappers.getMapper(AuthUserRoleDtoConvert.class);

    /**
     * 类型转换
     * @param authUserRoleDto
     * @return
     */
    AuthUserRoleBO convertDtoToSubjectInfoBO(AuthUserRoleDto authUserRoleDto);

    /**
     * 集合类型转换
     * @param authUserRoleDtos
     * @return
     */
    List<AuthUserRoleBO> convertDtoToSubjectInfoBOList(List<AuthUserRoleDto> authUserRoleDtos);
}
